-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conn: check we can use compression in startup #1215
Conversation
If the user asks to use compression check that the remote server supports it by making an options call first. Rejig conn startup to be self contained.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, only one comment.
m["COMPRESSION"] = compressor | ||
break | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're out of the for loop, but m["COMPRESSION"] is not set, then probably not supported by the backend. So, I reckon, reset s.conn.compressor here to nil, and print something appropriate in the log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, no, ignore. Not overly important to reset it, as probably the coordinator does startup only once.
m["COMPRESSION"] = compressor | ||
break | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, no, ignore. Not overly important to reset it, as probably the coordinator does startup only once.
If the user asks to use compression check that the remote server
supports it by making an options call first.
Rejig conn startup to be self contained.
fixes #1205